<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.hzqy.commons.utils.ConstantUtils" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <title>添加顾客信息</title>
    <link rel="stylesheet" type="text/css"	href="../../static/js/themes/defalut.css">
    <link rel="stylesheet" type="text/css"	href="../../static/js/themes/public.css">
    <link rel="stylesheet" type="text/css"	href="../../static/js/themes/ddspstyle.css">
    <link rel="stylesheet" type="text/css"	href="../../static/js/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css"	href="../../static/js/themes/icon.css">
    <link rel="stylesheet" type="text/css"	href="../../static/js/WdatePicker/skin/WdatePicker.css">
    <script type="text/javascript" src="../../static/js/jquery.min.js"></script>
    <script type="text/javascript" src="../../static/js/jquery.easyui.min.js"></script>
    <script type="text/javascript"	src="../../static/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="../../static/js/jquery.validate.js"></script>
    <script type="text/javascript" src="../../static/js/index.js"></script>
    <script type="text/javascript" src="../../static/js/WdatePicker/WdatePicker.js"></script>
    <script src="../../static/js/liquidmetal.js" type="text/javascript"></script>
    <script src="../../static/js/jquery.flexselect.js" type="text/javascript"></script>
    <link rel="stylesheet" href="edit/css/flexselect.css" type="text/css" media="screen" />
    <style>
        .flexselect_selected small { color: #ddd; }
    </style>
    
    <script type="text/javascript">
        $(function(){
            $("#contentForm").validate({
                rules: {
                    f_sd_phone: {
                        maxlength: 11,
                        digits:true
                    },
                    f_sd_familyNum:{
                        digits:true
                    }
                },
                messages: {
                    f_sd_phone: {
                        maxlength: "问卷调查名称不能超过11位",
                        message:"必须是数字"
                    },
                    f_sd_familyNum: {
                        message:"必须是数字"
                    }
                }
            });
        });
        
        function _submitFm() {
            if($("#contentForm").validate().form()) {
                app_ajax('../../industry/DICT/insertUserInfot.do', $("#contentForm").serialize(), function(data) {
                    if (data.success) {
                        $.messager.progress('close');
                        $.messager.alert('提示', '提交成功！', 'info', function() {
                            parent.$('#dlga').dialog('close');
                            parent.gotoSearch($('#easyui-treegrid'));
                        });
                    } else {
                        $.messager.alert('提示', data.result, 'info', function() {
                            $.messager.progress('close');
                        });
                    }
                });
            }
        }
    </script>

</head>
<body class="overfwidth">
<div class="barnavtop">您所在的位置：DICT智慧管理 &gt; 添加顾客信息</div>
<div id="workspace">
    <!--主体 开始-->
    <div id="container">
        <div class="editspace">
            <form id="contentForm" class="cmxform" enctype="multipart/form-data" name="formName">
                <legend>添加顾客信息</legend>
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">顾客所在区域：</td>
                                <td width="70%">
                                    <select id="f_sd_atArea" name="f_sd_atArea" style="width: 150px">
                                        <option value="">--请选择--</option>
                                        <option value="上城区">上城区</option>
                                        <option value="拱墅区">拱墅区</option>
                                        <option value="西湖区">西湖区</option>
                                        <option value="滨江区">滨江区</option>
                                        <option value="萧山区">萧山区</option>
                                        <option value="余杭区">余杭区</option>
                                        <option value="临平区">临平区</option>
                                        <option value="钱塘区">钱塘区</option>
                                        <option value="富阳区">富阳区</option>
                                        <option value="临安区">临安区</option>
                                        <option value="建德市">建德市</option>
                                        <option value="桐庐县">桐庐县</option>
                                        <option value="淳安县">淳安县</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">顾客所在小区：</td>
                                <td width="70%">
                                    <label>
                                        <input type="text" name="f_sd_village" id="f_sd_village" style="width: 150px;" value=""/>
                                    </label>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">顾客所在楼号：</td>
                                <td width="70%">
                                    <input type="text" name="f_sd_address" id="f_sd_address"/>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">顾客性别：</td>
                                <td width="70%">
                                    <select id="f_sd_sex" name="f_sd_sex">
                                        <option value="">--请选择--</option>
                                        <option value="男">男</option>
                                        <option value="女">女</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">顾客姓氏：</td>
                                <td width="70%">
                                    <label><input type="text" name="f_sd_surname" id="f_sd_surname" /></label>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">顾客年龄：</td>
                                <td width="70%">
                                    <select id="f_sd_age" name="f_sd_age">
                                        <option value="">--请选择--</option>
                                        <option value="20以下">20以下</option>
                                        <option value="20-30">20-30</option>
                                        <option value="30-40">30-40</option>
                                        <option value="40-50">40-50</option>
                                        <option value="50以上">50以上</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">联系方式：</td>
                                <td width="70%">
                                    <input type="text" name="f_sd_phone" id="f_sd_phone" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">顾客类别：</td>
                                <td width="70%">
                                    <select id="f_sd_utype" name="f_sd_utype">
                                        <option value="">--请选择--</option>
                                        <option value="电信手机用户">电信手机用户</option>
                                        <option value="电信单宽用户">电信单宽用户</option>
                                        <option value="电信融合套餐用户">电信融合套餐用户</option>
                                        <option value="它网用户">它网用户</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">顾客家庭成员数量：</td>
                                <td width="70%">
                                    <input type="text" name="f_sd_familyNum" id="f_sd_familyNum" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
    
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">顾客下单时间：</td>
                                <td width="70%">
                                    <input type="text" name="f_sd_buyTime" id="f_sd_buyTime" onClick="WdatePicker()"/>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
    
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">订单编号：</td>
                                <td width="70%">
                                    <input type="text" name="f_sd_orderid" id="f_sd_orderid"/>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
    
                <fieldset>
                    <div class="fitem">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td width="30%" align="right">抖店顾客：</td>
                                <td width="70%">
                                    <select id="f_sd_sellByDou" name="f_sd_sellByDou">
                                        <option value="">--请选择--</option>
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                
            </form>
        </div>
        
        <div class="toolbar" style="text-align: center;">
            <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0);" onclick="_submitFm()">保存</a>
            <a href="javascript:void(0);" data-options="iconCls:'icon-cancel'" class="easyui-linkbutton" onclick="javascript:parent.$('#dlga').dialog('close')">取消</a>
        </div>
    </div>
</div>
</body>
</html>
